import { Routes, RouterModule } from '@angular/router';
import {NgModule} from '@angular/core';
import {LayoutComponent, HomeComponent, EmptyComponent, LoginComponent} from './dashboard';
import {SystemManageModule} from './system-manage/system-manage.module';

const routes: any = [
  {
    path: '',
    component: LayoutComponent,
    children: [
      { path: '', component: HomeComponent },
      { path: 'empty', component: EmptyComponent },
      { path: 'authen', loadChildren: './system-manage/system-manage.module#SystemManageModule' },
    ]
  },
  { path: 'demo', loadChildren: './demo/demo.module#DemoModule' },
  { path: 'login', component: LoginComponent },
];


@NgModule({
  imports: [
    RouterModule.forRoot(routes)
  ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {}
